import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'

//解决每次ajax请求，session不一致问题
axios.defaults.withCredentials = true

// 样式引入ace-login
import '@/assets/external/css/bootstrap.min.css'
import '@/assets/external/font-awesome/4.5.0/css/font-awesome.min.css'
import '@/assets/external/css/fonts.googleapis.com.css'
import '@/assets/external/css/ace.min.css'
import '@/assets/external/css/ace-rtl.min.css'
import '@/assets/external/css/summernote.css'
import 'el-select-tree/lib/element-ui';

// 弹出框
import {Alert, Confirm, Toast, Loading} from 'wc-messagebox'
import 'wc-messagebox/style.css'
Vue.use(Alert)
Vue.use(Confirm)
Vue.use(Toast, 3000)
Vue.use(Loading)

/* table 插件 */
//npm install easytable --save -dev
import 'vue-easytable/libs/themes-base/index.css'
import {VTable, VPagination} from 'vue-easytable'
Vue.component(VTable.name, VTable)
Vue.component(VPagination.name, VPagination)
import tableOperation from '@/views/components/table/tableOperation'
Vue.component('tableOperation', tableOperation)



// 全局变量
import global from '@/global.vue'
Vue.prototype.$global = global

import '@/global.js'



Vue.config.productionTip = false
Vue.prototype.$axios = axios



const vue = new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')



export default vue